package lab02.Test05;

public class Cuboid {
    //设置一个长方体的属性
    private double grow;
    private double wide;
    private double high;


    public Cuboid(){}

    public Cuboid(double grow,double wide,double high){
        this.grow=grow;
        this.high=high;

        this.wide=wide;

    }

    public void setGrow(double grow) {
        this.grow = grow;
    }

    public double getGrow() {
        return grow;
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public double getHigh() {
        return high;
    }

    public void setWide(double wide) {
        this.wide = wide;
    }

    public double getWide() {
        return wide;
    }
    //定义的一个求体积的方法
    public double volume(double l ,double w,double h){
        return l*w*h;

    }
}
